using System;
using System.Collections.Generic;
using System.Text;
using OgilvyOne.BLL;
using OgilvyOne.Model;
using System.Collections;

namespace OgilvyOne.ProcessFlow
{
    public class StaffFavoriteControlle
    {
        // Methods
        public void DeleteStaffFavorite(int id)
        {
            try
            {
                new BLLStaffFavorite().DeleteStaffFavorite(id);
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception.ToString());
            }
        }

        public IList GetStaffFavoriteList(int sessionID)
        {
            BLLStaffFavorite favorite = new BLLStaffFavorite();
            return favorite.GetStaffFavoriteList(sessionID);
        }

        public void InsertStaffFavorite(StaffFavoriteInfo info)
        {
            try
            {
                new BLLStaffFavorite().InsertStaffFavorite(info);
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception.ToString());
            }
        }

    }
}
